#include "dockerps.h"

DockerPs::DockerPs(const QJsonObject &obj) : DockerOutputJson(obj)
{
    m_command      = obj.value("Command").toString();
    m_createdAt    = obj.value("CreatedAt").toString();
    m_id           = obj.value("ID").toString();
    m_image        = obj.value("Image").toString();
    m_labels       = obj.value("Labels").toString();
    m_localVolumes = obj.value("LocalVolumes").toString();
    m_mounts       = obj.value("Mounts").toString();
    m_names        = obj.value("Names").toString();
    m_networks     = obj.value("Networks").toString();
    m_ports        = obj.value("Ports").toString();
    m_runningFor   = obj.value("RunningFor").toString();
    m_size         = obj.value("Size").toString();
    m_state        = obj.value("State").toString();
    m_status       = obj.value("Status").toString();
}

QString DockerPs::command() const
{
    return m_command;
}

QString DockerPs::createdAt() const
{
    return m_createdAt;
}

QString DockerPs::id() const
{
    return m_id;
}

QString DockerPs::image() const
{
    return m_image;
}

QString DockerPs::labels() const
{
    return m_labels;
}

QString DockerPs::localVolumes() const
{
    return m_localVolumes;
}

QString DockerPs::mounts() const
{
    return m_mounts;
}

QString DockerPs::names() const
{
    return m_names;
}

QString DockerPs::networks() const
{
    return m_networks;
}

QString DockerPs::ports() const
{
    return m_ports;
}

QString DockerPs::runningFor() const
{
    return m_runningFor;
}

QString DockerPs::size() const
{
    return m_size;
}

QString DockerPs::state() const
{
    return m_state;
}

QString DockerPs::status() const
{
    return m_status;
}
